package com.trickytriads.model
{
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	/**
	 * TileData class, represents the business data behind a tile on the game board.
	 */
	[Bindable]
	public class TileData
	{
		// Card ID of the card in the tile
		public var currentcardid:int;
		// Controller (1 or 2)
		public var controller:int;
		// Element type of this tile (not the card!)
		public var element_id:int;	
		
		public function TileData(in_currentcardid:int, in_controller:int, in_element_id:int)
		{
			this.currentcardid = in_currentcardid;
			this.controller = in_controller;
			this.element_id = in_element_id;
		}
		
		/**
		 * Determines whether the tile is logically empty.
		 */
		public function isEmpty () : Boolean
		{
			return (this.currentcardid == 0);
		}

	}
	
}